package com.heartunderblade.rpc;

import com.heartunderblade.rpc.config.RegistryConfig;
import io.etcd.jetcd.Client;
import org.junit.Test;

import java.time.Duration;

public class ttest {
    @Test
    public void init(){
        RegistryConfig registryConfig = new RegistryConfig();
        Client.builder()
                .endpoints(registryConfig.getAddress())
                .connectTimeout(Duration.ofMillis(registryConfig.getTimeout()))
                .build();
    }

}
